﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Library
{
    public partial class ChiTietDDH
    {
        public static List<ChiTietDDH> GetList(int MaDDH)
        {
            return ChiTietDDH.GetListByMa(MaDDH);
        }

        public ChiTietDDH(int _ma, int _idsp, int _soluong)
        {
            MaDDH = _ma;
            ID_SP = _idsp;
            SoLuong = _soluong;
        }

        public ChiTietDDH() { }

        public void Delete()
        {
            ChiTietDDH.Delete(this);
        }

        public void Add()
        {
            ChiTietDDH.Add(this);
        }
    }
}
